import {actions} from '../base';

let url = 'admin/api/config-build';

export default {
    namespaced: true,
    state: {
        all: [],
        configs: {

        },
        options: {

        },
        request: {
            all: false,
        }
    },
    mutations: {
        SET_ALL(state, data) {
            state.all = data;
        },
        SET_REQUESTING(state, name) {
            state.request[name] = true;
        },
        SET_REQUESTED(state, name) {
            state.request[name] = false;
        },
    },
    actions: Object.assign(actions(url), {

    }),
};
